home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / demos.idb / usr / demos / General_Demos / doom / RUN.z / RUN
Encoding:
Text File  |  1997-06-26  |  1.8 KB  |  53 lines

  1. #!/bin/csh -f
  2. #Tag 0x00101C3
  3. #Author: G. Helms
  4. #Date:   12/6/94
  5. #Updated: June 24 1996: Diana Starr (new directory paths)
  6. #
  7. # Misc:  This is a total and complete hack.  Its sole reason for 
  8. # existance is to make life easier to first-time DOOM players, and
  9. # especially those using the iconic interface.  There are complexities
  10. # involved with the icons and the way paths are handled that I attempted
  11. # to address here.  If you have questions about DOOM, you should look
  12. # at the man page for sgixdoom, or read the README file in 
  13. # /usr/demos/General_Demos/doom directory.
  14.  
  15. # If the user hasn't set DOOMWADDIR, assume this is their first
  16. # time playing DOOM.  This means they don't know about ~home/.doomrc,
  17. # they don't know about the sndserver stuff, and they don't know about
  18. # registered WAD files.  So, set DOOMWADDIR to the commercial version,
  19. # but leave them in their current directory so they can save games if
  20. # they have write permission.
  21. #
  22. # Experienced users: DOOM only checks your current directory, ~home/.doomrc
  23. # file, and DOOMWADDIR for the sndserver.  DOOM only saves games to your
  24. # current directory, regardless of what DOOMWADDIR is set to.
  25. # You can also explicitly list the path to sndserver in your 
  26. #  ~home/.doomrc file by replacing "sndserver" with 
  27. #  "/usr/demos/General_Demos/doom/sndserver" in order to pick up sounds.  
  28. #
  29.  
  30.  
  31. if ( $?DOOMWADDIR == 0 ) then
  32.   setenv DOOMWADDIR /usr/demos/General_Demos/doom
  33. endif
  34.  
  35. #
  36. # If we run as the user nobody (as from the web demo interface) 
  37. # $DISPLAY is not set, which confuses DOOM, so set it here.
  38. #
  39.  
  40. setenv DISPLAY localhost:0.0
  41. setenv HOME /tmp
  42.  
  43.  
  44. # Now start up the REAL binary, and hand down any
  45. # options that may be wanted ($*). If nothing
  46. # specified, use size -2
  47.  
  48.  
  49. cd /usr/demos/General_Demos/doom
  50. /usr/demos/General_Demos/doom/sgixdoom -2 $*
  51.  
  52.  
  53.